libxc: add xc_gnttab_map_grant_ref_notify
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 6 Oct 2011 18:28:53 +0000 (19:28 +0100)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 6 Oct 2011 18:28:53 +0000 (19:28 +0100)
commit1f5552006de96f879ea0bcf342dcf4d9b3b06354
treeea023d0ddf2f20b6590c98f49c83fa4fdb811064
parentb7ee8d2f432f726a1154d172016d3f2b22757fe3
libxc: add xc_gnttab_map_grant_ref_notify

Normally, when a userspace process mapping a grant crashes, the domain
providing the reference receives no indication that its peer has
crashed, possibly leading to unexpected freezes or timeouts. This
function provides a notification of the unmap by signalling an event
channel and/or clearing a specific byte in the page.

This also unifies the 3 very similar grant-mapping osdep interfaces into
a single function instead of introducing yet another minor variation.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/include/xen-sys/Linux/gntdev.h
tools/libxc/xc_gnttab.c
tools/libxc/xc_linux_osdep.c
tools/libxc/xc_minios.c
tools/libxc/xenctrl.h
tools/libxc/xenctrlosdep.h